$(function(){
  //get block elem
  let $block = $('#main');

  //event hash router
  window.onhashchange = function() {
    //get color => get hash url
    let color = window.location.hash.substring(3, location.hash.length);
    //set color
    $block.css({
      'background-color' : color
    });
  }
});
